package com.xiaochangwei.web.service;

import com.xiaochangwei.web.beans.User;
import com.xiaochangwei.web.beans.UserInfo;

/**
 * @since 2017年1月5日 上午9:53:36
 * @author 肖昌伟 317409898@qq.com
 * @description
 */
public interface UserService {
	public User getUserByName(String username);

	public void updateLoginCount(User user);

	public void insertUser(User user);
 
	public UserInfo getUserInfo(Long userId);
	
	public void  insertUserInfo(UserInfo userInfo);
	
	public void updateUserInfo(UserInfo userInfo);

	public void updateUserContact(UserInfo userInfo);

	public UserInfo getUserContact(Long id);
	
	public void updatePm(Long userId, Integer pm);
	
}
